package com.fcgzs.springboot.mapper;

import com.fcgzs.springboot.pojo.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fcgzs.springboot.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wjd
 * @since 2021-10-12
 */
public interface MenuMapper extends BaseMapper<Menu> {

    //根据用户id获取一级菜单
    List<Map<String, Object>> getParentMenuByUid(Integer id);
    //根据用户id获取二级菜单
    List<Map<String, Object>> getChildMenuByUidAndPid(Integer uid, Integer pid);
}
